package org.lagou.edu.service;

import com.alibaba.dubbo.config.annotation.Reference;
import org.lagou.edu.rpc.IStockService;
import org.springframework.stereotype.Component;

@Component
public class TestService {

    @Reference
    private IStockService stockService;

    public void test() {
        long quantity = stockService.queryStock(1);
        System.out.println("quantity = " + quantity);
    }

}
